package Handle;

import java.awt.event.MouseAdapter;

import Window.Window;

public class MouseInput extends MouseAdapter{
	
	private int x =0, y = 0;
	
	public void mouseMoved(java.awt.event.MouseEvent e)
	{
		x = e.getX();
		y = e.getY();
	}
	 public void mouseClicked(java.awt.event.MouseEvent e)
	 {
		 System.out.print("mouseClicked");
	 }
	 
	  public void mousePressed(java.awt.event.MouseEvent e)
	  {
		  System.out.print("mousePressed");
	  }

	  public void mouseReleased(java.awt.event.MouseEvent e)
	  {
		  System.out.print("mouseReleased");
	  }
	 
	  public boolean getMouseHover (int x1, int x2, int y1, int y2)
	  {
		  if (x >= x1 && x  <= x2)
		  {
			return true;	
		  }
		  return false;
		  
	  }
	 
}
	


